
import 'package:flutter_ahj_app/app/NewMine/mine_info.dart';
import 'package:flutter_ahj_app/app/my/Beans/user_info_bean_entity.dart';
import 'package:flutter_ahj_app/app/my/Beans/users_operation_bean.dart';
import 'package:flutter_ahj_app/app/NewMine/MyModel.dart';
import 'package:flutter_ahj_app/base/basewidget/model/BaseModel.dart';

import '../../base/basewidget/viewmodel/BaseViewModel.dart';

class MyViewModel extends BaseViewModel<MyModel> {

  /*获取未读消息数量*/
  getMessageData(String role) {
    return model.getMessageData(role);
  }

  getData() {
    return model.getData();
  }



  ///获取所属运营中心
  usersOperation() {
    model.usersOperation();
  }

  @override
  MyModel get initModel => MyModel();


  /*获取未读消息数量*/
  Stream<Map> getMessageDataStream() => model.getMessageStream;

  Stream<Map> versionStream() => model.versionDataStream;

  Stream<MineInfo> getDataStream() => model.dataStream;

  Stream<Map> loginOutStream() => model.loginOutDataStream;

  checkVersion() {
    return model.checkVersion();
  }


  loginOut() {
    return model.loginOut();
  }


  Stream<UsersOperationBean> usersOperationStream() =>
      model.usersOperationStream;


  // 查询认证状态
  Stream<Map> isExistCerStream() => model.getIsExistCerStream;
  isExistCer() {
    model.getIsExistCer();
  }

}
